<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:a4j="http://richfaces.org/a4j" >

    <head>
        <title>Sistema academico</title>
        <link type="text/css" rel="stylesheet" href="#{facesContext.externalContext.request.contextPath}/css/notificacao.css" />
        <script type="type/javascript"
                src="#{facesContext.externalContext.request.contextPath}/js/jquery-1.3.2.min.js"></script>
        <script type="type/javascript"
                src="#{facesContext.externalContext.request.contextPath}/js/jquery-ui-1.7.2.custom.min.js"></script>
        <script type="type/javascript"
                src="#{facesContext.externalContext.request.contextPath}/js/jquery.meio.mask.js"></script>
        <script type="type/javascript">
           var $a = jQuery.noConflict();
        </script>
    </head>
    <body>
    <ui:include src="notificacao.xhtml" />
    <f:loadBundle basename="messages" var="i18n" />
    <h:form id="autenticacao">
        <h:outputText value="Usuario Logado: " />
        <h:outputText value="#{usuarioController.emailSession}" />
        <h:panelGrid columns="3">
            <h:outputLabel value="#{i18n['label.usuario']}" />
            <h:inputText id="email"
                         value="#{usuarioController.usuario.email}"
                         required="true" >
                <f:validator validatorId="emailValidator" />
            </h:inputText>
            <h:message for="email" />

            <h:outputLabel value="#{i18n['label.senha']}" />
            <h:inputSecret id="senha"
                           value="#{usuarioController.usuario.senha}"/>
            <h:message for="senha" />
        </h:panelGrid>
        <h:selectOneMenu >
            <f:selectItems value="" />
            <f:valueChangeListener/>
        </h:selectOneMenu>
        <h:commandButton value="Acessar" action="#{usuarioController.acessar}" />
        <h:commandLink value="Logoff" immediate="true" action="#{usuarioController.logoff}" />
        <h:commandLink value="Criar minha conta." immediate="true" action="CADASTRO_USUARIO" />
        <h:commandLink value="Imprimir" immediate="true" action="#{usuarioController.relatorio}" />
    </h:form>
    <h:form>
        <h:commandButton value="Acesar ambiente filtrado" action="FILTRADO" />
    </h:form>
</body>

</html>